package com.woniuxy.cloud52;

import com.woniuxy.cloud.ticket52.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="cinema52",contextId = "Sessions")
public interface SessionsAPI {
    /**
     * 根据电影id查场次
     * @param mcid
     * @return
     */
    @GetMapping("getSessions")
    public Result getSessions(@RequestParam("mcid")int mcid);
}
